<link rel="stylesheet" type="text/css" href="../css/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../css/themes/icon.css">

<div id="panel-lack-base-supply-archive-pop" data-options="border:false;width:100%">
	<div class="easyui-panel list-panel" data-options="openAnimation:'slide',closeAnimation:'slide'">
	  	<div class="well well-small" style="margin-left: 5px;margin-top: 5px">
			<p>
				<span class="badge">提示</span>
				 <strong><font color="red">双击</font></strong> 记录行, 可以查看档案不完备供应商详情
			</p>			
		</div>   
	
		<table class="easyui-datagrid dg-list" 
			data-options="rownumbers:true,
			animate: true,						
			striped:true,
			border:true,
			//singleSelect:false,
			idField: 'id',						
			fitColumns: true,
			checkOnSelect:true,
			selectOnCheck:true,
			pagination : true">
			
	<thead>						
		<tr>								
					<th field="sup_name" width="60" align="center" data-options="{
					   formatter:function(value,row,index){
						   if(value==null){
						    	return '<span><font color=red>空</font></span>';
					       }else{
					            return '<span><font color=black>'+value+'</font></span>';
					       }
			           }
			        }">供应商名称</th>
					<th field="legalrepresentative" width="60" align="center" data-options="{
						formatter:function(value,row,index){
						   if(value==null){
						    	return '<span><font color=red>空</font></span>';
					       }else{
					            return '<span><font color=black>'+value+'</font></span>';
					       }
				        }
				     }">法人代表</th>
					<th field="authorizedperson" width="60" align="center" data-options="{
						formatter:function(value,row,index){
							if(value==null){
							    return '<span><font color=red>空</font></span>';
						    }else{
						        return '<span><font color=black>'+value+'</font></span>';
						    }
					    }
					
				    }">被授权人</th>
					<th field="contactphone" width="60" align="center" data-options="{
					   formatter:function(value,row,index){
						   if(value==null){
						    	return '<span><font color=red>空</font></span>';
					       }else{
					            return '<span><font color=black>'+value+'</font></span>';
					       }
			           }
			        }">联系电话</th>
			        
			        <th field="supply_businesslicence" width="60" align="center" data-options="{
						formatter:function(value,row,index){
						   if(value==null||value==0){
						    	return '<span><font color=red>空</font></span>';
					       }else{
					            return '<span><font color=green>已上传</font></span>';
					       }
				        }
				     }">营业执照</th>
				     
				     <th field="supply_authorizecertification" width="60" align="center" data-options="{
						formatter:function(value,row,index){
							if(value==null||value==0){
							   return '<span><font color=red>空</font></span>';
						    }else{
						       return '<span><font color=green>已上传</font></span>';
						    }
					    }
					
				    }">法人授权书</th>
				    
				    <th field="supply_socialsecurity" width="60" align="center" data-options="{
						formatter:function(value,row,index){
							 if(value==null||value==0){
							    	return '<span><font color=red>空</font></span>';
						     }else{
						            return '<span><font color=green>已上传</font></span>';
						     }
						}
					}">社保证明</th>
					
				    
					<th field="supply_education" width="60" align="center" data-options="{
						formatter:function(value,row,index){
						   if(value==null||value==0){
						    	return '<span><font color=red>空</font></span>';
					       }else{
					            return '<span><font color=green>已上传</font></span>';
					       }
				        }
				     }">被授权人培训证</th>
					
					<th field="supply_nobriberecord" width="60" align="center" data-options="{
							formatter:function(value,row,index){
								 if(value==null||value==0){
								    	return '<span><font color=red>空</font></span>';
							     }else{
							            return '<span><font color=green>已上传</font></span>';
							     }
							}
					}">无行贿记录证明</th>
					
					
					<th field="supply_aftersaleservice" width="60" align="center" data-options="{
							formatter:function(value,row,index){
								 if(value==null||value==0){
								    	return '<span><font color=red>空</font></span>';
							     }else{
							            return '<span><font color=green>已上传</font></span>';
							     }
							}
					}">售后服务承诺书</th>
					
					<th field="supply_honestcontract" width="60" align="center" data-options="{
							formatter:function(value,row,index){
								 if(value==null||value==0){
								    	return '<span><font color=red>空</font></span>';
							     }else{
							            return '<span><font color=green>已上传</font></span>';
							     }
							}
					}">廉洁购销合同</th>
			</tr>	
			</thead>
			
		</table>
	</div>
	
	<div class="easyui-panel details-panel" data-options="closed:true,openAnimation:'slide',closeAnimation:'slide'">
	  	   
		<div>					
			<a href="javascript:void(0);" class="easyui-linkbutton function-btn l-btn l-btn-small l-btn-plain" iconcls="icon-undo" plain="true">返回</a>
		</div>
		<table class="easyui-datagrid dg-list" 
			data-options="rownumbers:true,
			animate: true,				
			striped:true,
			border:true,
			//singleSelect:false,
			idField: 'id',
			fitColumns: true,
			checkOnSelect:true,
			selectOnCheck:true,
			pagination : true">			
			<thead>
				<tr>
						<th field="sup_name" width="60" align="center" data-options="{
						   formatter:function(value,row,index){
							   if(value==null){
							    	return '<span><font color=red>空</font></span>';
						       }else{
						            return '<span><font color=black>'+value+'</font></span>';
						       }
				        }
				     }">供应商名称</th>
						<th field="legalrepresentative" width="60" align="center" data-options="{
							formatter:function(value,row,index){
							   if(value==null){
							    	return '<span><font color=red>空</font></span>';
						       }else{
						            return '<span><font color=black>'+value+'</font></span>';
						       }
					        }
					     }">法人代表</th>
						<th field="authorizedperson" width="60" align="center" data-options="{
							formatter:function(value,row,index){
								if(value==null){
								    return '<span><font color=red>空</font></span>';
							    }else{
							        return '<span><font color=black>'+value+'</font></span>';
							    }
						    }
						
					    }">被授权人</th>
						<th field="contactphone" width="60" align="center" data-options="{
						   formatter:function(value,row,index){
							   if(value==null){
							    	return '<span><font color=red>空</font></span>';
						       }else{
						            return '<span><font color=black>'+value+'</font></span>';
						       }
				        }
				     }">联系电话</th>
						<th field="supply_education" width="60" align="center" data-options="{
							formatter:function(value,row,index){
							   if(value==null||value==0){
							    	return '<span><font color=red>空</font></span>';
						       }else{
						            return '<span><font color=green>已上传</font></span>';
						       }
					        }
					     }">被授权人培训证</th>
						<th field="supply_authorizeCertification" width="60" align="center" data-options="{
							formatter:function(value,row,index){
								if(value==null||value==0){
								   return '<span><font color=red>空</font></span>';
							    }else{
							       return '<span><font color=green>已上传</font></span>';
							    }
						    }
						
					    }">法人授权书</th>
						<th field="supply_socialsecurity" width="60" align="center" data-options="{
							formatter:function(value,row,index){
								 if(value==null||value==0){
								    	return '<span><font color=red>空</font></span>';
							     }else{
							            return '<span><font color=green>已上传</font></span>';
							     }
							}
						}">社保证明</th>
						<th field="supply_aftersaleservice" width="60" align="center" data-options="{
								formatter:function(value,row,index){
									 if(value==null||value==0){
									    	return '<span><font color=red>空</font></span>';
								     }else{
								            return '<span><font color=green>已上传</font></span>';
								     }
								}
						}">售后服务承诺书</th>
		      </tr>	
			</thead>
			
		</table>
	</div>
	
</div> 

 
<script>
requirejs(['popListPage','baseSupplyInfo','domReady!'],function(flowedit,baseSupplyInfo,doc){
	flowedit.init({doc:doc,
		rootId:'panel-lack-base-supply-archive-pop',
		subSystemCode:'supply',
		moduleCode:'baseInfoSupply',
		queryModule:'supplyBaseinfo',
		querylistUrl:'getListDomain',
		editWindow:'lack-base-supply-archive-pop-win',
		initElement:baseSupplyInfo.initMain,				
		rowClick:baseSupplyInfo.clickBizRow
	});
});	
</script>

